<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PytctbcomponCreateDlg" widgetVar="PytctbcomponCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePytctbcomponTitle}">

            <h:form id="PytctbcomponCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pytctbcomponController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pytctbcomponController.selected.descripcion}" title="#{myBundle.CreatePytctbcomponTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_descripcion}"/>
                        
                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_indicador}" for="indicador" />
                        <p:inputText id="indicador" value="#{pytctbcomponController.selected.indicador}" title="#{myBundle.CreatePytctbcomponTitle_indicador}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_indicador}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_supuestos}" for="supuestos" />
                        <p:inputText id="supuestos" value="#{pytctbcomponController.selected.supuestos}" title="#{myBundle.CreatePytctbcomponTitle_supuestos}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_supuestos}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_verificacion}" for="verificacion" />
                        <p:inputText id="verificacion" value="#{pytctbcomponController.selected.verificacion}" title="#{myBundle.CreatePytctbcomponTitle_verificacion}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_verificacion}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_porcentaje}" for="porcentaje" />
                        <p:inputText id="porcentaje" value="#{pytctbcomponController.selected.porcentaje}" title="#{myBundle.CreatePytctbcomponTitle_porcentaje}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_porcentaje}"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pytctbcomponController.selected.fecharegistro}" title="#{myBundle.EditPytctbcomponTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPytctbcomponRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePytctbcomponLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pytctbcomponController.selected.observaciones}" title="#{myBundle.CreatePytctbcomponTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePytctbcomponRequiredMessage_observaciones}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pytctbcomponController.saveNew}" value="#{myBundle.Save}" update="display,:PytctbcomponListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PytctbcomponCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PytctbcomponCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
